function paintworkflow(layoutFile, currentStepIds, xAdjust, yAdjust, widthAdjust, heightAdjust){
	var xmlHttp = XmlHttp.create();
	var async = true;
	xmlHttp.open("GET", layoutFile, async);
	xmlHttp.onreadystatechange = function () {
	    if (xmlHttp.readyState == 4){
	        //set up graphics
	        var jg = new jsGraphics("workflowCanvas");
	        jg.setColor("#ff0000");
	        jg.setStroke(3);
	        
	        //parsing xml and paint;
	        var cells = xmlHttp.responseXML.getElementsByTagName("cell");
	        for(var i = 0; i < currentStepIds.length; i++){
	            for(var n = 0; n < cells.length; n++){
	                var cell = cells[n];
	                if(cell.getAttribute("type") == "StepCell" && currentStepIds[i] == parseInt(cell.getAttribute("id"))){
	                    jg.drawRect(parseInt(cell.getAttribute("x")) + xAdjust, parseInt(cell.getAttribute("y")) + yAdjust, parseInt(cell.getAttribute("width")) + widthAdjust, parseInt(cell.getAttribute("height")) + heightAdjust);
	                }
	            }
	        }
	        jg.paint();
	    }
	};
	xmlHttp.send(null);    
}